<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>变量的解构赋值</title>
</head>
<body>
    <script>
        //1.数组的解构
        const F4 = ['F1','F2','F3','F4']
        let [x,y,z,k] =F4
        console.log(x)
        //2.对象
        const zhao = {
            name:'zhaobenshan',
            age:'不详',
            xiaopin:function(){
                console.log('我可以演小品')
            }
        };

        let {name,age,xiaopin} = zhao
        console.log(xiaopin)
        xiaopin('xxxx')


    </script>
    
</body>
</html>